package GUILayer;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.UIManager;
import javax.swing.border.CompoundBorder;
import javax.swing.border.LineBorder;
import java.awt.Color;
import javax.swing.JTable;
import java.awt.Font;
import javax.swing.JRadioButton;
import javax.swing.JButton;
import javax.swing.JSpinner;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JTextPane;
import javax.swing.JScrollBar;
import java.awt.FlowLayout;
import javax.swing.border.BevelBorder;
import javax.swing.border.TitledBorder;
import javax.swing.border.MatteBorder;
import javax.swing.border.SoftBevelBorder;


public class PersonGUI {

	private JFrame frmVestbjergByggecenterAs;
	private JTable table;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;
	private JTextField textField_5;
	private JTextField textField_6;
	private JTextField textField_7;
	private JTable table_1;
	private JTable table_2;
	private JTable table_3;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					PersonGUI window = new PersonGUI();
					window.frmVestbjergByggecenterAs.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public PersonGUI() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frmVestbjergByggecenterAs = new JFrame();
		frmVestbjergByggecenterAs.setTitle("Vestbjerg Byggecenter A/S");
		frmVestbjergByggecenterAs.setBounds(100, 100, 800, 600);
		frmVestbjergByggecenterAs.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frmVestbjergByggecenterAs.getContentPane().setLayout(null);
		
		JPanel panel = new JPanel();
		panel.setBorder(new TitledBorder(new LineBorder(new Color(0, 0, 0)), "Oprettelse / opdatering af person", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel.setBounds(10, 11, 302, 540);
		frmVestbjergByggecenterAs.getContentPane().add(panel);
		panel.setLayout(null);
		
		JPanel panel_1 = new JPanel();
		panel_1.setBorder(new SoftBevelBorder(BevelBorder.RAISED, null, null, null, null));
		panel_1.setBounds(10, 29, 282, 243);
		panel.add(panel_1);
		panel_1.setLayout(null);
		
		textField = new JTextField();
		textField.setBounds(10, 44, 141, 20);
		panel_1.add(textField);
		textField.setColumns(10);
		
		textField_1 = new JTextField();
		textField_1.setBounds(178, 44, 94, 20);
		panel_1.add(textField_1);
		textField_1.setColumns(10);
		
		JLabel lblNewLabel = new JLabel("Navn");
		lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 15));
		lblNewLabel.setBounds(10, 19, 46, 14);
		panel_1.add(lblNewLabel);
		
		JLabel lblNewLabel_3 = new JLabel("ID");
		lblNewLabel_3.setFont(new Font("Tahoma", Font.PLAIN, 15));
		lblNewLabel_3.setBounds(178, 19, 46, 14);
		panel_1.add(lblNewLabel_3);
		
		JLabel lblNewLabel_4 = new JLabel("Adresse");
		lblNewLabel_4.setFont(new Font("Tahoma", Font.PLAIN, 15));
		lblNewLabel_4.setBounds(10, 75, 81, 14);
		panel_1.add(lblNewLabel_4);
		
		textField_2 = new JTextField();
		textField_2.setBounds(10, 100, 262, 20);
		panel_1.add(textField_2);
		textField_2.setColumns(10);
		
		JLabel lblNewLabel_8 = new JLabel("E-mail adresse");
		lblNewLabel_8.setFont(new Font("Tahoma", Font.PLAIN, 15));
		lblNewLabel_8.setBounds(10, 131, 103, 14);
		panel_1.add(lblNewLabel_8);
		
		textField_5 = new JTextField();
		textField_5.setBounds(10, 156, 262, 20);
		panel_1.add(textField_5);
		textField_5.setColumns(10);
		
		JLabel lblNewLabel_9 = new JLabel("Telefon");
		lblNewLabel_9.setFont(new Font("Tahoma", Font.PLAIN, 15));
		lblNewLabel_9.setBounds(10, 187, 59, 14);
		panel_1.add(lblNewLabel_9);
		
		textField_6 = new JTextField();
		textField_6.setBounds(10, 212, 262, 20);
		panel_1.add(textField_6);
		textField_6.setColumns(10);
		
		JPanel panel_3 = new JPanel();
		panel_3.setBorder(new SoftBevelBorder(BevelBorder.RAISED, null, null, null, null));
		panel_3.setBounds(10, 283, 282, 42);
		panel.add(panel_3);
		panel_3.setLayout(null);
		
		JRadioButton rdbtnNewRadioButton = new JRadioButton("Kunde");
		rdbtnNewRadioButton.setBounds(6, 7, 109, 23);
		panel_3.add(rdbtnNewRadioButton);
		
		JRadioButton rdbtnNewRadioButton_1 = new JRadioButton("Medarbejder");
		rdbtnNewRadioButton_1.setBounds(112, 7, 109, 23);
		panel_3.add(rdbtnNewRadioButton_1);
		
		JPanel panel_4 = new JPanel();
		panel_4.setBorder(new SoftBevelBorder(BevelBorder.RAISED, null, null, null, null));
		panel_4.setBounds(10, 487, 282, 42);
		panel.add(panel_4);
		panel_4.setLayout(null);
		
		JButton btnNewButton = new JButton("Tilf\u00F8j person");
		btnNewButton.setBounds(10, 11, 115, 23);
		panel_4.add(btnNewButton);
		
		JButton btnNewButton_1 = new JButton("Opdatere person");
		btnNewButton_1.setEnabled(false);
		btnNewButton_1.setBounds(157, 11, 115, 23);
		panel_4.add(btnNewButton_1);
		
		JPanel panel_5 = new JPanel();
		panel_5.setBorder(new SoftBevelBorder(BevelBorder.RAISED, null, null, null, null));
		panel_5.setLayout(null);
		panel_5.setBounds(10, 336, 282, 140);
		panel.add(panel_5);
		
		JLabel lblNewLabel_5 = new JLabel("Kunde rabat");
		lblNewLabel_5.setEnabled(false);
		lblNewLabel_5.setFont(new Font("Tahoma", Font.PLAIN, 15));
		lblNewLabel_5.setBounds(10, 11, 91, 14);
		panel_5.add(lblNewLabel_5);
		
		textField_3 = new JTextField();
		textField_3.setEnabled(false);
		textField_3.setBounds(10, 36, 86, 20);
		panel_5.add(textField_3);
		textField_3.setColumns(10);
		
		JLabel lblNewLabel_6 = new JLabel("Procent");
		lblNewLabel_6.setEnabled(false);
		lblNewLabel_6.setBounds(97, 39, 46, 14);
		panel_5.add(lblNewLabel_6);
		
		JLabel lblNewLabel_7 = new JLabel("CVR nummer");
		lblNewLabel_7.setEnabled(false);
		lblNewLabel_7.setFont(new Font("Tahoma", Font.PLAIN, 15));
		lblNewLabel_7.setBounds(10, 67, 91, 14);
		panel_5.add(lblNewLabel_7);
		
		textField_4 = new JTextField();
		textField_4.setEnabled(false);
		textField_4.setBounds(10, 92, 119, 20);
		panel_5.add(textField_4);
		textField_4.setColumns(10);
		
		JLabel lblNewLabel_1 = new JLabel("New label");
		lblNewLabel_1.setBounds(103, 11, 46, 14);
		frmVestbjergByggecenterAs.getContentPane().add(lblNewLabel_1);
		
		JLabel lblNewLabel_2 = new JLabel("New label");
		lblNewLabel_2.setBounds(122, 11, 46, 14);
		frmVestbjergByggecenterAs.getContentPane().add(lblNewLabel_2);
		
		JPanel panel_2 = new JPanel();
		panel_2.setLayout(null);
		panel_2.setBorder(new TitledBorder(new LineBorder(new Color(0, 0, 0)), "Registered personer", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel_2.setBounds(322, 11, 452, 540);
		frmVestbjergByggecenterAs.getContentPane().add(panel_2);
		
		
		JButton btnNewButton_3 = new JButton("Fjern person");
		btnNewButton_3.setBounds(330, 506, 115, 23);
		panel_2.add(btnNewButton_3);
		
		JPanel panel_7 = new JPanel();
		panel_7.setBorder(null);
		panel_7.setBounds(13, 131, 432, 371);
		panel_2.add(panel_7);
		panel_7.setLayout(null);
		
		JScrollBar scrollBar = new JScrollBar();
		scrollBar.setBounds(415, 0, 17, 371);
		panel_7.add(scrollBar);
		scrollBar.setBackground(Color.LIGHT_GRAY);
		
		table_2 = new JTable();
		table_2.setBounds(10, 0, 1, 1);
		panel_7.add(table_2);
		
		table_3 = new JTable();
		table_3.setBounds(0, 0, 409, 371);
		panel_7.add(table_3);
		
		JPanel panel_6 = new JPanel();
		panel_6.setBounds(10, 24, 435, 96);
		panel_2.add(panel_6);
		panel_6.setBorder(new SoftBevelBorder(BevelBorder.RAISED, null, null, null, null));
		panel_6.setLayout(null);
		
		
		textField_7 = new JTextField();
		textField_7.setBounds(10, 65, 323, 20);
		panel_6.add(textField_7);
		textField_7.setColumns(10);
		
		JButton btnNewButton_2 = new JButton("S\u00F8g");
		btnNewButton_2.setBounds(343, 64, 89, 23);
		panel_6.add(btnNewButton_2);
		
		JLabel lblNewLabel_10 = new JLabel("S\u00F8g efter ID");
		lblNewLabel_10.setBounds(10, 36, 251, 25);
		panel_6.add(lblNewLabel_10);
		lblNewLabel_10.setFont(new Font("Tahoma", Font.PLAIN, 15));
		
		JComboBox comboBox = new JComboBox();
		comboBox.setBounds(10, 11, 112, 20);
		panel_6.add(comboBox);
		comboBox.setFont(new Font("Tahoma", Font.PLAIN, 15));
		comboBox.setModel(new DefaultComboBoxModel(new String[] {"Kunde", "Medarbejder"}));
	}
}
